class Others {
    static SendSms(phone) {
        return fetch(`https://api2.bmob.cn/1/requestSmsCode`,{
            method: 'post',
            headers: {
                "X-Bmob-Application-Id": "8248ad0bce889edac066e91f5a4029d5",
                "X-Bmob-REST-API-Key": "b90c7715930f079522147927fdfaf2ba",
                "Content-Type": "application/json"
            },
            body: JSON.stringify({
                mobilePhoneNumber: phone
            })
        });
    }
    static RequestCaptcha() {
        return fetch(`https://api2.bmob.cn/1/requestCaptcha`,{
            method: 'post',
            headers: {
                "X-Bmob-Application-Id": "8248ad0bce889edac066e91f5a4029d5",
                "X-Bmob-REST-API-Key": "b90c7715930f079522147927fdfaf2ba",
                "Content-Type": "application/json"
            },
            body: JSON.stringify({
                'width': 85,
                'height': 30,
                'size': 4,
                'ttl': 180
            })
        });
        // {
        //     "captcha_token": "X8yISxaXa5iZLSRHFJoY",
        //     "captcha_url": "https://api2.bmob.cn/1/captchaImage?secretKey=693f7e27f97550ba&token=X8yISxaXa5iZLSRHFJoY"
        // }
    }
    constructor() {
    }
}
